Skip to main content

iphoneFileDataProtection

Type​

function

Summary​

Retrieves the data protection level of a file.

Syntax​

iphoneFileDataProtection (<filename>)

Description​

Use the iphoneFileDataProtection function to query the current level of protection of a particular file set using the command iphoneSetFileDataProtection.

Parameters​

NameTypeDescription

filename

string

A string containing the path to the file.

Examples​

if iphoneFileDataProtection(tFile) is "none" then
iphoneSetFileDataProtection tFile, "complete"
end if

Value​

NameTypeDescription

return

enum

command: iphoneSetFileDataProtection, iphoneSetDoNotBackupFile

function: iphoneFileDataProtection, iphoneDoNotBackupFile

message: protectedDataWillBecomeUnavailable, protectedDataDidBecomeAvailable

Compatibility and Support​

Introduced

LiveCode 5.5.1

OS

ios

Platforms

mobile

Thank you for your feedback!

Was this page helpful?